import React from 'react';
import './index.less';
import {render} from 'ader';
import {Table, Button} from 'antd';
import ModelSetAction from '../../actions/ModelSet';

export default render({
    actions: {
        modelSet: ModelSetAction
    },
    models: ['modelSet']
})(({props, state, action}) => {

    const {modelSet} = props;

    return (
        <div className="model-list">
            <Table
                columns={action.modelSet.processTableColumns()}
                dataSource={modelSet.data}
                bordered
                pagination={false}
            />
        </div>
    );

});